package org.example.springioc.Config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ConfigDemo {
    @Bean
    public People p(){
        People people = new People("zhangsan");
        return people;
    }

    @Bean
    public People p1(){
        return new People("wangwu");
    }
}
